FROM openeuler/openeuler:20.03

WORKDIR /opt
ENV HADOOP_VERSION 2.10.2
ENV JAVA_VERSION 8u392

ENV HADOOP_HOME /opt/module/hadoop-$HADOOP_VERSION

COPY ../build/hadoop-$HADOOP_VERSION $HADOOP_HOME
COPY ../data/profile /opt
RUN mkdir /opt/software
COPY ../build/openjdk-$JAVA_VERSION /opt/software/openjdk-$JAVA_VERSION

RUN source /opt/profile
RUN rm -rf $HADOOP_CONF_DIR

RUN dnf update -y

RUN dnf install -y openssh-server openssh-clients util-linux passwd

RUN ssh-keygen -A
